﻿/*
 * Created by SharpDevelop.
 * User: amb
 * Date: 02/06/2014
 * Time: 16:43
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using JdFormsDll;
using JdFormDll.Decorator;

namespace JdFormsCSharpDll
{
    public partial class MainForm : MyForm
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {   
            var v = Enum.GetNames(typeof(MyFormDecoratorSettings));
            toolStripComboBox1.Items.Clear();
            toolStripComboBox1.Items.AddRange(v.ToArray());
            toolStripComboBox1.SelectedIndex = 0;
        }
        
        void ToolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
        	Skins.CurrentDecorator = (MyFormDecoratorSettings)toolStripComboBox1.SelectedIndex;
            Skins.SetDecorator(this);
            toolStripStatusLabel1.Text = "Decorator from " + toolStripComboBox1.Text;
            this.Invalidate();
        }
    }
}
